﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
<script type="text/jscript">
    function getBrowserWindowSize() {
        var de = document.documentElement;
        return {
            'width': (window.innerWidth || (de && de.clientWidth) || document.body.clientWidth),
            'height': (window.innerHeight || (de && de.clientHeight) || document.body.clientHeight)
        }
    }
    window.onload = function() {
        var t = getBrowserWindowSize();
        document.getElementById("BrowserWindowSize").innerHTML += "<b>可见窗口大小：</b>width=" + t.width + "  Height=" + t.height;
    }
</script>
<div id="BrowserWindowSize"></div>
</body>
</html>
